namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class BlogModeratorMap : ClassMap<BlogModeratorDataModel>
    {
        #region Constructors and Destructors

        public BlogModeratorMap()
        {
            this.Table("BlogModerators");
            this.LazyLoad();
            this.CompositeId()
                .KeyProperty(x => x.BlogId, "BlogId")
                .KeyProperty(x => x.ModeratorId);

            //References(x => x.Blog).Column("BlogId");
        }

        #endregion
    }
}